<?php
namespace SunAdmin\Controller;

use SunAdmin\Service\SystemInfoService;
use SunAdmin\Common\ResponseJson;

class SystemInfoController
{
    /**
     * 获取系统信息接口
     * @return \think\response\Json
     */
    public function getSystemMetrics()
    {
        $service = new SystemInfoService();
        $data = $service->getSystemMetrics();
        return ResponseJson::success($data, '获取成功');
    }
} 